<include file="header" />
<script type="text/javascript">
    window.onload=function(){
        chkBox('chkbox','tids[]');
        chagou('imgstatus','__ROOT__');
    }
</script>
<form action="__CONTROLLER__/batDelClass" method="post">
    <table class="tableb">
        <tr class="tbtitle">
            <td colspan="4" class="tdsearch"> </td>
            <td><span class="rightop"><a href="__CONTROLLER__/addClass">添加分类</a></span></td>
        </tr>
        <tr class="contitle">
            <td><input type="checkbox" value="all" id="chkbox" />编号</td>
            <td>类别名称</td>
            <td>状态</td>
            <td>更新时间</td>
            <td>操作</td>
        </tr>
        <foreach name="list" item="value">
        <tr class="content conline">
            <td><input type="checkbox" name="tids[]" value="{$value.tid}" />{$value.tid}</td>
            <td>{$value.sortname}</td>
            <td class="imgstatus">{$value.status}</td>
            <td>{$value.updatetime}</td>
            <td><a href="__CONTROLLER__/editClass/{$value.tid}">编辑</a>&nbsp;&nbsp;<a href="__CONTROLLER__/delOneClass/{$value.tid}" onclick="javascript:return confirm('你确定要删除该分类吗？')">删除</a></td>
        </tr>
        </foreach>
        <tr class="content conline">
            <td><input type="submit" value="批量删除" name="goBatDel" /></td>
        </tr>
    </table>
</form>
<p>
<div id="page">
    {$page}
</div>
</p>
<style type="text/css">
    div#page div{
        height: 100px;
        text-align: center;
        font-size: 25px;
    }

    div#page a{
        font-size: 25px;
    }
</style>

<include file="footer" />